/*

* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Smart-Shop开源商城系统/ Java商城-首选电商平台系统 请务必保留此注释头信息
* |     开源地址: https://gitee.com/ningbo-qishan/gruul-mall
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     可正常分享和学习源码,未经授权 不可商用！
* |     商业版中台购买/开源版商业授权 联系技术客服
* |     官网:  https://www.73app.cn/
* ------------------------------------------------------------------------
* ------------------------------------------------------------------------
* |     Copyright (c) 2016-2999 宁波启山智软科技有限公司
* |     版权所有 ,侵权必究！
* ------------------------------------------------------------------------

*/
package com.medusa.gruul.platform.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.medusa.gruul.common.data.base.BaseNoTenantEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author whh
 * @since 2020-11-06
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("t_agent_package_order")
@ApiModel(value = "AgentPackageOrder对象", description = "")
public class AgentPackageOrder extends BaseNoTenantEntity {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 代理id
     */
    @ApiModelProperty(value = "代理id")
    @TableField("agent_id")
    private Long agentId;

    /**
     * 订单编号
     */
    @ApiModelProperty(value = "订单编号")
    @TableField("order_num")
    private String orderNum;

    /**
     * 商户id
     */
    @ApiModelProperty(value = "商户id")
    @TableField("account_id")
    private Long accountId;

    /**
     * 1:余额支付2:扫码支付->微信3:扫码支付->支付宝4:汇款支付
     */
    @ApiModelProperty(value = "1:余额支付2:扫码支付->微信3:扫码支付->支付宝4:汇款支付")
    @TableField("pay_type")
    private Integer payType;

    /**
     * 支付时间
     */
    @ApiModelProperty(value = "支付时间")
    @TableField("pay_time")
    private LocalDateTime payTime;

    /**
     * 实付金额
     */
    @ApiModelProperty(value = "实付金额")
    @TableField("paid_payable")
    private BigDecimal paidPayable;

    /**
     * 套餐 id
     */
    @ApiModelProperty(value = "套餐 id")
    @TableField("package_id")
    private Long packageId;

    /**
     * 下单时套餐完整数据
     */
    @ApiModelProperty(value = "下单时套餐完整数据")
    @TableField("package_data")
    private String packageData;

    /**
     * 订单支付状态 0:待处理1:处理中2:已经完成
     */
    @ApiModelProperty(value = "订单支付状态 0:待处理1:处理中2:已经完成")
    @TableField("status")
    private Integer status;

    /**
     * 获利金额
     */
    @ApiModelProperty(value = "获利金额")
    @TableField("earn_profit_money")
    private BigDecimal earnProfitMoney;

    /**
     * 订单来源
     */
    @ApiModelProperty(value = "订单来源 同套餐订单 com.medusa.gruul.platform.api.entity.SysShopPackageOrder.orderSource ")
    @TableField("order_source")
    private Integer orderSource;
}
